package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.trade.feign.fallback.UcenterFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-ucenter" ,fallback = UcenterFeignClientFallback.class)
public interface UcenterFeignClient {

    @GetMapping("/api/ucenter/member/get-memberinfo/{id}")
    public R getMemberInfo(@PathVariable String id);
}
